home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / NumeralView.h < prev    next >
Text File  |  1997-06-28  |  374b  |  26 lines

  1. // NumeralView.h
  2.  
  3. #ifndef NumeralView_h
  4. #define NumeralView_h
  5.  
  6. #ifndef StringView_h
  7. #include "StringView.h"
  8. #endif
  9.  
  10. class NumeralView: public StringView
  11.   {
  12.     private:
  13.         uint32 digits;
  14.         
  15.     public:
  16.         NumeralView( ::Face );
  17.                 
  18.         void SetNumber( int32 );
  19.         void SetDigits( uint32 d )        { digits = d; }
  20.         
  21.         uint16 MinimumWidth() const;
  22.         uint16 BestWidth() const;
  23.   };
  24.  
  25. #endif
  26.